package com.bdqn.biz;

import java.util.List;

import com.bdqn.dao.UserDAO;
import com.bdqn.entity.User;

@SuppressWarnings("unchecked")
public class UserBiz {
	UserDAO dao = new UserDAO();

	public User findByName(String userName) {
		List<User> list = dao.findByUserName(userName);
		if (null == list || list.size() < 1) {
			return null;
		}
		return list.get(0);
	}
}
